package ioc14;

import org.springframework.beans.factory.FactoryBean;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

/**
 * Auther:ws@itany.com
 * Date:20-9-14 上午11:23
 * Version:1.0
 * Description:
 */

public class SAXParserFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        SAXParserFactory factory = SAXParserFactory.newInstance();
        SAXParser saxParser = factory.newSAXParser();
        return saxParser;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
